package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

import java.math.BigInteger;
import java.util.Objects;

public class UserPowerChild extends DataObject {
    private long userId;

    private String childUid;

    private int childTalent;

    private int childSex;

    private int childOccupation;

    private String childName;

    private int childHeadIcon;

    private long childAdultTime;

    private int motherBeautyId;

    /**
     * 亲密度
     */
    private int motherThenIntimacy;

    private int childOccupationId;

    private BigInteger childEarnSpeed;

    private boolean isTwins;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public String getChildUid() {
        return childUid;
    }

    public void setChildUid(String childUid) {
        if(!Objects.equals(this.childUid, childUid)) {
            this.childUid = childUid;
            setUpdateOption();
        }
    }

    public int getChildTalent() {
        return childTalent;
    }

    public void setChildTalent(int childTalent) {
        if(this.childTalent != childTalent) {
            this.childTalent = childTalent;
            setUpdateOption();
        }
    }

    public int getChildOccupation() {
        return childOccupation;
    }

    public void setChildOccupation(int childOccupation) {
        if(this.childOccupation != childOccupation) {
            this.childOccupation = childOccupation;
            setUpdateOption();
        }
    }

    public String getChildName() {
        return childName;
    }

    public void setChildName(String childName) {
        if(!Objects.equals(this.childName, childName)) {
            this.childName = childName;
            setUpdateOption();
        }
    }

    public int getChildSex() {
        return childSex;
    }

    public void setChildSex(int childSex) {
        if(this.childSex != childSex) {
            this.childSex = childSex;
            setUpdateOption();
        }
    }

    public int getChildHeadIcon() {
        return childHeadIcon;
    }

    public void setChildHeadIcon(int childHeadIcon) {
        if(this.childHeadIcon != childHeadIcon) {
            this.childHeadIcon = childHeadIcon;
            setUpdateOption();
        }
    }

    public long getChildAdultTime() {
        return childAdultTime;
    }

    public void setChildAdultTime(long childAdultTime) {
        this.childAdultTime = childAdultTime;
    }

    public int getMotherBeautyId() {
        return motherBeautyId;
    }

    public void setMotherBeautyId(int motherBeautyId) {
        if(this.motherBeautyId != motherBeautyId) {
            this.motherBeautyId = motherBeautyId;
            setUpdateOption();
        }
    }

    public int getMotherThenIntimacy() {
        return motherThenIntimacy;
    }

    public void setMotherThenIntimacy(int motherThenIntimacy) {
        if(this.motherThenIntimacy != motherThenIntimacy) {
            this.motherThenIntimacy = motherThenIntimacy;
            setUpdateOption();
        }
    }

    public int getChildOccupationId() {
        return childOccupationId;
    }

    public void setChildOccupationId(int childOccupationId) {
        if(this.childOccupationId != childOccupationId) {
            this.childOccupationId = childOccupationId;
            setUpdateOption();
        }
    }

    public BigInteger getChildEarnSpeed() {
        return childEarnSpeed;
    }

    public void setChildEarnSpeed(BigInteger childEarnSpeed) {
        if(!Objects.equals(this.childEarnSpeed, childEarnSpeed)) {
            this.childEarnSpeed = childEarnSpeed;
            setUpdateOption();
        }
    }

    public boolean getIsTwins() {
        return isTwins;
    }

    public void setIsTwins(boolean isTwins) {
        if(!Objects.equals(this.isTwins, isTwins)) {
            this.isTwins = isTwins;
            setUpdateOption();
        }
    }
}
